package com.fromfuture.xuhuidoc.android.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.fromfuture.xuhuidoc.R;
import com.fromfuture.xuhuidoc.android.base.MyWebview;
import com.fromfuture.xuhuidoc.android.commonresouce.MyHtml;
import com.fromfuture.xuhuidoc.cordova.untils.CordovaAppManager;

public class BlActivity extends AppCompatActivity {
    private MyWebview myWebview;
    private String docguid,patguid,blguid;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bl);
        CordovaAppManager.myblActivity=this;
        init();
    }

    private void init(){

        myWebview= (MyWebview) findViewById(R.id.bl_webview);

        Intent intent=getIntent();
        this.blguid=intent.getStringExtra("lookguid");
        this.patguid=intent.getStringExtra("patguid");
        this.docguid=intent.getStringExtra("docguid");
        if (patguid!=null){
            myWebview.loadUrl(MyHtml.NEWRECORD+"?sickguid="+patguid);
            patguid=null;
            blguid=null;
        }else if (blguid!=null){
            myWebview.loadUrl(MyHtml.VIEW_MEDICAL_RECORD+"?caseGuid="+blguid);
            blguid=null;
            patguid=null;
        }


    }

    public static void toMyConsultRoomfra02(){



    }

}
